eltopo2di = 'E:\code\eltopo2d\include';
eltopo2dl = 'E:\code\eltopo2d\lib';
imager2di = 'E:\code\imager2d\include';
imager2dl = 'E:\code\imager2d\lib';
imath2dl = 'E:\code\imath2d\lib';
gsli = 'E:\Program Files\GSL\include'
gsll = 'E:\Program Files\GSL\lib';

% mikei = 'E:\code\test\include';
% mikel = 'E:\code\test\lib';

ipath1 = ['-I', eltopo2di];
lpath1 = ['-L', eltopo2dl];
ipath2 = ['-I', imager2di];
lpath2 = ['-L', imager2dl];
lpath3 = ['-L', imath2dl];
ipath4 = ['-I', gsli];
lpath4 = ['-L', gsll];

% ipath = ['-I', mikei]
% lpath = ['-L', mikel]

% mex('-v', ipath, lpath, '-lmike', 'zyf.cpp')

mex('-v', ipath1, lpath1, ipath2, lpath2, lpath3, ipath4, lpath4, '-leltopo2d', '-limager2d', '-limath2d', '-lcblas_d', 'ElTopoWraper.cpp')